package me.youline.dataServer.controller.dto;

import java.io.Serializable;

/**
 * 公告消息前端展示DTO
 * @author linhan
 *
 */
public class PubMsgDetailFrontDTO extends PubMsgBaseFrontDTO implements Serializable{
	
	private static final long serialVersionUID = 5778189484174839900L;

	/**
	 * 识别封面图url
	 */
	private String recognPicUrl = "";
	
	
	/**
	 * 消息ID
	 */
	private Long messageId;
	
	
	/**
	 * 场景ID
	 */
	private Long sceneId;

	
	/**
	 * 点赞数
	 */
	private int praiseNum ; 
	
	/**
	 * 是否已经被当前用户点赞
	 */
	private boolean isPraised;
	
	/**
	 * 消息创建人信息
	 */
	private UserSimpleInfoFrontDTO creator;
	
	private boolean isFollowing;
	
	private boolean isFollowed;

	public String getRecognPicUrl() {
		return recognPicUrl;
	}


	public void setRecognPicUrl(String recognPicUrl) {
		this.recognPicUrl = recognPicUrl;
	}


	public Long getMessageId() {
		return messageId;
	}


	public void setMessageId(Long messageId) {
		this.messageId = messageId;
	}


	public Long getSceneId() {
		return sceneId;
	}


	public void setSceneId(Long sceneId) {
		this.sceneId = sceneId;
	}


	public int getPraiseNum() {
		return praiseNum;
	}


	public void setPraiseNum(int praiseNum) {
		this.praiseNum = praiseNum;
	}


	public boolean getIsPraised() {
		return isPraised;
	}


	public void setIsPraised(boolean isPraised) {
		this.isPraised = isPraised;
	}


	public UserSimpleInfoFrontDTO getCreator() {
		return creator;
	}


	public void setCreator(UserSimpleInfoFrontDTO creator) {
		this.creator = creator;
	}


	public void setRelStatus(UserRelationStatusDTO relStatus) {
		this.setIsFollowed(relStatus.getIsFollowed());
		this.setIsFollowing(relStatus.getIsFollowing());
	}


	public boolean getIsFollowing() {
		return isFollowing;
	}


	public void setIsFollowing(boolean isFollowing) {
		this.isFollowing = isFollowing;
	}


	public boolean getIsFollowed() {
		return isFollowed;
	}


	public void setIsFollowed(boolean isFollowed) {
		this.isFollowed = isFollowed;
	}
	
	
}
